﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Reports.CommanData
{
    public class Goods
    {
        private static Reports.CommanData.Common.vwGoodsDetailedDataTable _list;
        public static Reports.CommanData.Common.vwGoodsDetailedDataTable List(string conString)
        {
                if (_list == null)
                {
                    Reports.CommanData.CommonTableAdapters.vwGoodsDetailedTableAdapter adapter = new Reports.CommanData.CommonTableAdapters.vwGoodsDetailedTableAdapter();
                    adapter.Connection.ConnectionString = conString;
                    _list = adapter.GetData();
                    Reports.CommanData.Common.vwGoodsDetailedRow r = _list.NewvwGoodsDetailedRow();
                    r.Id = 0;
                    r.FullName = "";
                    _list.Rows.InsertAt(r, 0);
                }
                return _list;
          
        }
    }
}
